package com.alibaba.entity;

import java.util.HashSet;
import java.util.Set;

/**
 * Question entity. 
 * @author kinglcc 
 */

public class Question implements java.io.Serializable {

	// Fields

	private Integer questionId;
	private ReplySheet replySheet;
	private QuestionType questionType;
	private String question;
	private String answer;
	private String belong;
	private Integer hashCode;
	private Boolean isdeleted;
	private Set listenings = new HashSet(0);
	private Set exams = new HashSet(0);

	// Constructors

	/** default constructor */
	public Question() {
	}

	/** minimal constructor */
	public Question(ReplySheet replySheet, QuestionType questionType, String question,
			String answer) {
		this.replySheet = replySheet;
		this.questionType = questionType;
		this.question = question;
		this.answer = answer;
	}

	/** full constructor */
	public Question(ReplySheet replySheet, QuestionType questionType, String question,
			String answer, String belong, Integer hashCode, Boolean isdeleted,
			Set listenings, Set exams) {
		this.replySheet = replySheet;
		this.questionType = questionType;
		this.question = question;
		this.answer = answer;
		this.belong = belong;
		this.hashCode = hashCode;
		this.isdeleted = isdeleted;
		this.listenings = listenings;
		this.exams = exams;
	}

	// Property accessors

	public Integer getQuestionId() {
		return this.questionId;
	}

	public void setQuestionId(Integer questionId) {
		this.questionId = questionId;
	}

	public ReplySheet getReplySheet() {
		return this.replySheet;
	}

	public void setReplySheet(ReplySheet replySheet) {
		this.replySheet = replySheet;
	}

	/**
	 * @return the questionType
	 */
	public QuestionType getQuestionType() {
		return questionType;
	}

	/**
	 * @param questionType the questionType to set
	 */
	public void setQuestionType(QuestionType questionType) {
		this.questionType = questionType;
	}

	public String getQuestion() {
		return this.question;
	}

	public void setQuestion(String question) {
		this.question = question;
	}

	public String getAnswer() {
		return this.answer;
	}

	public void setAnswer(String answer) {
		this.answer = answer;
	}

	public String getBelong() {
		return this.belong;
	}

	public void setBelong(String belong) {
		this.belong = belong;
	}

	public Integer getHashCode() {
		return this.hashCode;
	}

	public void setHashCode(Integer hashCode) {
		this.hashCode = hashCode;
	}

	public Boolean getIsdeleted() {
		return this.isdeleted;
	}

	public void setIsdeleted(Boolean isdeleted) {
		this.isdeleted = isdeleted;
	}

	public Set getListenings() {
		return this.listenings;
	}

	public void setListenings(Set listenings) {
		this.listenings = listenings;
	}

	public Set getExams() {
		return this.exams;
	}

	public void setExams(Set exams) {
		this.exams = exams;
	}

}